<!DOCTYPE html>
<html>
<head>
    <meta name="keywords" content="酷龙科技">
    <meta name="renderer" content="webkit">
    <meta name="force-rendering" content="webkit">
    <meta http-equiv="x-ua-compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <meta charset="utf-8">
    <link rel="icon" href="/favicon.ico" mce_href="favicon.ico">
    <link rel="stylesheet" href="{{ asset('layui/css/layui.css') }}"/>
    <link rel="stylesheet" href="{{ asset('css/main.css') }}"/>
    <title>{{ $lotto->title }}</title>
</head>
<body class="success">
<div class="success-bg" style="background-image: url({{ $lotto->bg_image }})">
    <div class="success-title">
        <div class="title">
            <img src="{{ asset('images/logo.png') }}"/>
            {{ $lotto->title }}
        </div>
    </div>
    <div class="extract-user">
        @switch($status)
            @case('invalid')
            <span class="name">抽奖已关闭</span>
            @break

            @case('qr_code')
            <div class="header-img" style="border-radius: 0;height: 200px; width: 200px;">
                <img src="{{ $lotto->joinQrCode() }}" style="border-radius: 0;"/>
            </div>
            <style>
                .extract-user .name a {
                    color: white;
                }
            </style>
            <div class="layui-elip">
                <span class="name">扫码 或</span>
                <p class="name"><a href="{{ $lotto->joinLink() }}">点击此处</a> 参与</p>
            </div>
            @break
        @endswitch
    </div>
</div>
</body>
</html>